package com.xianyun.book.gatewayimpl.elasticsearch.dataobject;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
import java.util.Date;
/**
 * @author macos-zyj
 */
@Document(indexName = "book_info", shards = 2, replicas = 0)
@Data
public class BookEsDO {
    @Field(type= FieldType.Auto)
    private String title;
    /**评价分数*/
    private String score;
    @Field(type= FieldType.Auto)
    private String author;
    private String price;
    @Field(type= FieldType.Auto)
    private String publish;
    private String publish_time;
    private Integer like_person;
    /**译者*/
    private String translator;
    private String img;
    /**书籍标签*/
    private String tag;
    /**书籍描述*/
    private String brief;
    /**ISBN码*/
    private String isbn;
    /**时间戳*/
    private Date timestamp;
}
